package com.xuecheng.api.auth;

import com.xuecheng.framework.domain.ucenter.request.LoginRequest;
import com.xuecheng.framework.domain.ucenter.response.JwtResult;
import com.xuecheng.framework.domain.ucenter.response.LoginResult;
import com.xuecheng.framework.model.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Api(value = "用户认证",description = "用户认证接口")
public interface AuthControllerApi {

    @ApiOperation("用户登录")
    LoginResult login(LoginRequest loginRequest, HttpServletResponse httpServletResponse);
    @ApiOperation("退出登录")
    ResponseResult logout(HttpServletRequest httpServletRequest,HttpServletResponse httpServletResponse);
    @ApiOperation("获取userJwt令牌")
    JwtResult userJwt(HttpServletRequest request);
}
